package com.excesys.service.impl;

import com.alipay.api.AlipayApiException;
import com.excesys.bean.AliPay;
import com.excesys.pojo.ProductOrder;
import com.excesys.service.AliPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AliPayServiceImpl implements AliPayService {

    @Autowired
    private AliPay aliPay;


    @Override
    public String aliPay(ProductOrder order) throws AlipayApiException {
        System.out.println("order----service--:" + order);
        return aliPay.pay(order);
    }
}

